package com.springbootxuexi.repository;

import com.springbootxuexi.domain.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface StudentRepository extends JpaRepository<Student,Integer> {

    Student findByAccountAndPassword(String account, String password);

    Student findByAccount(String account);

    Student findById(Integer id);
}
